/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.test.example;

import com.test.example.parser.ParserImpl;
import com.test.example.webservice.MainWebService;
import java.util.logging.Logger;

/**
 *
 * @author Alexx
 */
public final class Main {
    private static Logger log = Logger.getLogger(Main.class.getName());
    
    private Main(){}
    
    public static void main (String[] args){
        if (args.length == 0 || args[0].equals("help") ){
            log.info("\n\n" + "l - for local mode \n" + "s - to use web service");
        }  if (args[0].equals("l") ){
            String s = "\n\n\n------------------------------------------------ \n" +
                    new ParserImpl().parse() +
                    "\n------------------------------------------------ ";
            log.info(s);
        }  if (args[0].equals("s")){
            log.info(MainWebService.getQuote());
        }
    }
    
}
